package com.kehongborui.ticket.service;

import com.kehongborui.ticket.entity.Ticket;

import java.util.List;

/**
 * @author zhang peng yang ming
 * @CopyRight (C) http://www.csdn.com
 * @brief 车票增删改查
 * @email 122162005@qq.com
 * @date 2018-08-15
 */
public interface TicketService {
    //查找车票
    Ticket findById(Long id);

    // 创建车票
    boolean create(Ticket ticket);

    boolean create();

    // 删除车票
    boolean delete(Long id);

    // 修改
    boolean update(Ticket ticket);

    // 查询所有车票
    List<Ticket> findAll();
}
